<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // https://www.douyin.com/user/self?modal_id=7146417574497094942&showTab=favorite_collection
      Promise.resolve()
        .then(() => {
          console.log(0);
          return Promise.resolve(4);
        })
        .then((res) => {
          console.log(res);
        });
      Promise.resolve()
        .then(() => {
          console.log(1);
        })
        .then((res) => {
          console.log(2);
        })
        .then((res) => {
          console.log(3);
        })
        .then((res) => {
          console.log(5);
        })
        .then((res) => {
          console.log(6);
        });
    </script>
  </body>
</html>
